﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Young3.FMSearch.Core.Entities.InGame;

namespace Young3.FMSearch.Utils
{
    public static class ImageExtender
    {
        public static string Image(this Player e)
        {
            string dir = @"c:\users\Public\Documents\Sports Interactive\Football Manager 2010\graphics\faces\MEGAPACK 2.0\";

            string path = Path.Combine(dir, e.ID + ".png");

            return !File.Exists(path) ? null : path;
        }

        public static string Image(this Staff e)
        {
            string dir = @"c:\users\Public\Documents\Sports Interactive\Football Manager 2010\graphics\faces\MEGAPACK 2.0\";

            string path = Path.Combine(dir, e.ID + ".png");

            return !File.Exists(path) ? null : path;
        }
    }
}
